#ifdef __cplusplus
extern "C" {
#endif


#include "Application.h"
#include "Plugin.h"
#include "PluginDescriptor.h"
#include "PluginDependence.h"
#include <windows.h>

int WINAPI WinMain( HINSTANCE _tInstance, HINSTANCE _tPrevInstance, LPSTR _tCmdLine, int _tShowCmd )
{
	Application * application = __instance(Application)

	__begfun(application, Application, initialize)
		_tInstance
	__endfun

	PluginDependence * pluginDependence = (PluginDependence *)malloc(sizeof(PluginDependence));
	
	__begfun(pluginDependence, PluginDependence, initialize)
		"plugin.txt"
	__endfun

	__voidfun(pluginDependence, PluginDependence, startup)

	__voidfun(application, Application, showGraceful)

	return 0;
}


#ifdef __cplusplus
}
#endif
